class ViewFactory {
  static ViewClasses = {};
  static createViewByNodeName(t) {
    let n = null;
    if (this.ViewClasses.hasOwnProperty(t)) {
      let r = this.ViewClasses[t];
      n = new r();
    }
    return n;
  }
  static addClass = function (t, n) {
    this.ViewClasses[t] = n;
  };
}

export default ViewFactory;
